import datetime
from pathlib import Path
from loguru import logger

TIME_SMAP = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")

PATH = Path(__file__).parent
CASE_DIR = PATH / 'case'

REPORT_PATH = PATH / 'reports'
REPORT_PATH.mkdir(exist_ok=True)

TASK_DIR = REPORT_PATH / f'{TIME_SMAP}'
TASK_DIR.mkdir()

SCREEN_PATH = TASK_DIR / 'screenshots'
SCREEN_PATH.mkdir()

DATA_DIR = PATH / 'data'
HTML_DIR = PATH / 'html'

LOG_PATH = TASK_DIR / 'log'
LOG_PATH.mkdir()

LOG_FILE = LOG_PATH / 'pytest.log'
logger.add(LOG_FILE)

